﻿using Cl.Entity.DataBaseEntity.User;
using Cl.Utils.Primitives.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Model.DataBaseEntityDtos.User.Roles
{
    public class RoleOutDto
    {
        public RoleOutDto() { }
        public RoleOutDto(Role role)
        {
            Id = role.Id;
            Name = role.Name;
            ParentId = role.ParentId;
            Code = role.Code;
            Type = role.Type;
            Description = role.Description;
            Sort = role.Sort;
        }
        public int Id { get; set; }

        /// <summary>
        /// 父级Id
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>

        public string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>

        public string Code { get; set; }

        public RoleType Type { get; set; }
        public string Description { get; set; }
        public int Sort { get; set; }
    }
}
